<div class="top-action">
	<ul class="links">
		<li><a href="cms-list.php">List CMS</a></li>
	</ul>
	
	
</div>
<div class="form-wrap">
	<form id="cms-add-form" name="cms-add-form" method="post" action="cms-add.php" enctype="multipart/form-data">
	  <table class="data-editor">
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Page Name: <span class="required">*</span></td>
		<td>
			<input type="text" name="cms[page_name]" value="{$cms.page_name|default:$smarty.get.name|utf8}" class="input" id="cms-page_name" />
			<span class="form-hints">Search engine friendly URL page name</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Include File: <span class="required">*</span></td>
		<td>
			<input type="text" name="cms[include_file]" value="{$cms.include_file|utf8}" class="input" id="cms-include_file" />
			<span class="form-hints">Addtional HTML template file to be included</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Content Title: <span class="required">*</span></td>
		<td>
			<input type="text" name="cms[content_title]" value="{$cms.content_title|utf8}" class="input" id="cms-content_title" />
			<span class="form-hints">Contents Title (Heading)</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Content Text: <span class="required">*</span></td>
		<td class="value">
			<div><textarea rows="5" cols="75" name="cms[content_text]" class="editor" id="cms-content_text">{$cms.content_text|utf8}</textarea></div>
			<p><span class="form-hints">Static HTML Text</span></p>		</td>
	</tr>

<!--{*
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Meta Keywords: <span class="required">*</span></td>
		<td>
			<input type="text" name="cms[meta_keywords]" value="{$cms.meta_keywords|utf8}" class="input" id="cms-meta_keywords" />
			<span class="form-hints">HTML Meta Keywords</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Meta Description: <span class="required">*</span></td>
		<td class="value">
			  <input name="cms[meta_description]" type="text" class="input" id="cms-meta_description" value="{$cms.meta_description|utf8}" />
			<span class="form-hints">HTML Meta Description</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Template File: <span class="required">*</span></td>
		<td>
			<input type="text" name="cms[template_file]" value="{$cms.template_file|utf8}" class="input" id="cms-template_file" />
			<span class="form-hints">Which file to use in templates? Normally: admin.php, management.php, null.php, blank.php</span>		</td>
	</tr>
*}-->

							
	<tr class="{cycle values='A,B'}">
	  <td class="attribute">&nbsp;</td>
	  <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave it blank. *}-->
		
		<input type="hidden" name="protection_code" value="{$protection_code}" />
		<input type="hidden" name="add-action" value="Add CMS" />
		<input type="submit" name="submit-button" class="submit" value="Add" />
		<a href="{url::last_page('cms-list.php')}" class="button-cancel">Cancel</a>
	</td>
	</tr>
  </table>
</form>
</div>
<!-- End of administrators Add -->


<!-- Add validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/cms/add.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of cms Add -->